function [ idx ] = rank_proportional_rand_idx( max_idx )
%UNTITLED5 Summary of this function goes here
%   Detailed explanation goes here

idx = max_idx + 1 - floor(sqrt(randi([1 ((max_idx+1).^2)-1])));


end

